package com.echat.serviceapigateway.security.service;

import com.echat.serviceapigateway.security.model.authentication.User;
import com.github.pagehelper.PageInfo;

/**
 * Created by chenmohan on 2018/08/30
 *
 * @description
 */
public interface UserService {

    User createUser(User user);

    User getUserByPrimaryKey(String userName);

    String getAccessKeyByUserName(String userName);

    boolean existUser(User user);

    User getUser(User user);

    User getUserByAccessKey(String accessKey);

    String getUserIdByAccessKey(String accessKey);

    void activeUser(Long userId);

    User activeUserByAccessKey(User user);

    User refresh(User user);

    PageInfo<User> listUsersByCondition(User condition);


}
